{extend name='main'}

{block name="button"}
<!--{if sysconf('service.ticket_push_date')}-->
<span class='layui-btn layui-btn-sm layui-btn-disabled'>TICKET TIME {:sysconf('service.ticket_push_date')}</span>
<!--{/if}-->

<!--{if auth("edit")}-->
<button data-modal="{:url('edit')}" class='layui-btn layui-btn-sm layui-btn-primary'>开放平台配置</button>
<!--{/if}-->
{/block}

{block name="content"}
<div class="think-box-notify sub-strong-blue">
    微信开放平台对接参数及客户端接口网关地址，面向客户端系统支持 <b>Yar</b>、<b>JsonRpc</b>、<b>WebService</b> 接口方式调用。
</div>
<div class="think-box-shadow">
    <div class="padding-20 padding-top-10 padding-bottom-10">
        <div class="layui-row layui-col-space30">
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <span class="help-label"><b>开放平台账号</b>AppId</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:sysconf('service.component_appid')?:'未配置'}">
                        <a data-copy="{:sysconf('service.component_appid')}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">开放平台服务 AppId，需要在微信开放平台获取</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>开放平台密钥</b>AppSecret</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:sysconf('service.component_appsecret')?:'未配置'}">
                        <a data-copy="{:sysconf('service.component_appsecret')}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">开放平台服务 AppSecret，需要在微信开放平台获取</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>开放平台消息校验</b>Token</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:sysconf('service.component_token')?:'未配置'}">
                        <a data-copy="{:sysconf('service.component_token')}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">开发者在代替微信接收到消息时，用此 TOKEN 来校验消息</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>开放平台消息加解密</b>AesKey</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:sysconf('service.component_encodingaeskey')?:'未配置'}">
                        <a data-copy="{:sysconf('service.component_encodingaeskey')}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">在代替微信收发消息时使用，必须是长度为43位字母和数字组合的字符串</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>授权白名单IP地址</b>ClientIp</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{$geoip|default=''}">
                        <a data-copy="{$geoip|default=''}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">需要在开放平台配置此IP地址后才能调用开放平台的接口哦</p>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <span class="help-label"><b>授权发起页域名</b>微信开放平台</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{$request->host()}">
                        <a data-copy="{$request->host()}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">微信开放平台对接所需参数，从本域名跳转到登录授权页才可以完成登录授权，无需填写域名协议前缀</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>授权事件接收地址</b>微信开放平台</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:url('api.push/ticket',[],false,true)}">
                        <a data-copy="{:url('api.push/ticket',[],false,true)}" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">微信开放平台对接所需参数，用于接收取消授权通知、授权成功通知、授权更新通知、接收 TICKET 凭据</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>微信消息接收地址</b>微信开放平台</span>
                    <label class="relative block">
                        <input disabled class="layui-input layui-bg-gray" value="{:url('api.push/notify',[],false,true)}/appid/$APPID$">
                        <a data-copy="{:url('api.push/notify',[],false,true)}/appid/$APPID$" data-tips-text="复制" class="layui-icon layui-icon-release input-right-icon"></a>
                    </label>
                    <p class="help-block">微信开放平台对接所需参数，通过该 URL 接收微信消息和事件推送，$APPID$ 将被替换为微信 AppId</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>微信授权绑定跳转入口</b>ThinkPlugsWechat</span>
                    <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('api.push/auth',[],false,true)}?source=SOURCE"></label>
                    <p class="help-block">应用插件 ThinkPlugsWechat 对接所需参数，使用微信第三方授权时会跳转到这个页面，由微信管理员进行扫码授权</p>
                </div>
                <div class="layui-form-item layui-hide">
                    <span class="help-label"><b>客户端系统 Yar 调用接口</b>ThinkPlugsWechat</span>
                    <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('api.client/yar',[],false,true)}?token=TOKEN"></label>
                    <p class="help-block">应用插件 ThinkPlugsWechat 对接所需参数，客户端 Yar 接口，TOKEN 包含 class appid time nostr sign 的加密内容</p>
                </div>
                <div class="layui-form-item layui-hide">
                    <span class="help-label"><b>客户端系统 Soap 调用接口</b>ThinkPlugsWechat</span>
                    <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('api.client/soap',[],false,true)}?token=TOKEN"></label>
                    <p class="help-block">应用插件 ThinkPlugsWechat 对接所需参数，客户端 Soap 接口，TOKEN 包含 class appid time nostr sign 的加密内容</p>
                </div>
                <div class="layui-form-item">
                    <span class="help-label"><b>客户端系统 JsonRpc 调用接口</b>ThinkPlugsWechat</span>
                    <label class="relative block"><input disabled class="layui-input layui-bg-gray" value="{:url('api.client/jsonrpc',[],false,true)}?token=TOKEN"></label>
                    <p class="help-block">应用插件 ThinkPlugsWechat 对接所需参数，客户端 JsonRpc 接口链接，TOKEN 包含 class appid time nostr sign 的加密内容</p>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}